using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace LCWMS
{
    public partial class so003_print : Form
    {
        private CrystalDecisions.Windows.Forms.CrystalReportViewer crystalReportViewer1;
        private so003_print_rpt so003_print_rpt1;
        public DataTable ds_print;
        public so003_print()
        {
            InitializeComponent();
        }

        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(so003_print));
            this.crystalReportViewer1 = new CrystalDecisions.Windows.Forms.CrystalReportViewer();
            this.so003_print_rpt1 = new LCWMS.so003_print_rpt();
            this.SuspendLayout();
            // 
            // crystalReportViewer1
            // 
            this.crystalReportViewer1.ActiveViewIndex = 0;
            this.crystalReportViewer1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.crystalReportViewer1.Cursor = System.Windows.Forms.Cursors.Default;
            this.crystalReportViewer1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.crystalReportViewer1.Location = new System.Drawing.Point(0, 0);
            this.crystalReportViewer1.Name = "crystalReportViewer1";
            this.crystalReportViewer1.ReportSource = this.so003_print_rpt1;
            this.crystalReportViewer1.ShowLogo = false;
            this.crystalReportViewer1.Size = new System.Drawing.Size(687, 456);
            this.crystalReportViewer1.TabIndex = 0;
            // 
            // so003_print
            // 
            this.ClientSize = new System.Drawing.Size(687, 456);
            this.Controls.Add(this.crystalReportViewer1);
            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.Name = "so003_print";
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Load += new System.EventHandler(this.so003_print_Load);
            this.ResumeLayout(false);

        }

        private void so003_print_Load(object sender, EventArgs e)
        {
            try
            {
                this.so003_print_rpt1.SetDataSource(ds_print);
                this.crystalReportViewer1.ReportSource = so003_print_rpt1;
            }
            catch (Exception ee) 
            {
                MessageBox.Show(ee.ToString());
                return;
            } 
        }
    }
}